import request from "@/utils/request";

// 获取 ftp 配置
export function getConfig(query) {
  return request({
    url: "/parameters/getConfig.FTP",
    method: "get",
    params: query,
  });
}

// 保存 ftp 配置
export function saveConfig(query) {
  return request({
    url: "/parameters/saveConfig.FTP",
    method: "get",
    params: query,
  });
}

// 获取10011配置
export function getHighPressure(query) {
  return request({
    url: "/parameters/getConfig10011",
    method: "get",
    params: query,
  });
}

// 保存10011配置
export function handeleSaveConfig10011(query) {
  return request({
    url: "/parameters/saveConfig10011",
    method: "get",
    params: query,
  });
}

//获取ftp列表
export function getPlcList(data) {
  return request({
    url: "/plcConfig/list",
    method: "post",
    data: data,
  });
}
//添加ftp
export function addPlc(data) {
  return request({
    url: "/plcConfig/add",
    method: "post",
    data: data,
  });
}
//修改ftp
export function editPlc(data) {
  return request({
    url: "/plcConfig/edit",
    method: "post",
    data: data,
  });
}
//删除ftp
export function deletePlc(data) {
  return request({
    url: "/plcConfig/delete",
    method: "post",
    data: data,
  });
}
//plc巡检对象列表
export function plcDevicelist(data) {
  return request({
    url: "/plcDevice/list",
    method: "post",
    data: data,
  });
}
//plc巡检对象新增
export function plcDeviceAdd(data) {
  return request({
    url: "/plcDevice/add",
    method: "post",
    data: data,
  });
}
//plc巡检对象修改
export function plcDeviceEdit(data) {
  return request({
    url: "/plcDevice/edit",
    method: "post",
    data: data,
  });
}
//plc巡检对象删除
export function plcDeviceDelete(data) {
  return request({
    url: "/plcDevice/delete",
    method: "post",
    data: data,
  });
}
//plc巡检对象数据
export function plcDeviceTree(data) {
  return request({
    url: "/plcDevice/selectDeviceTree",
    method: "post",
    data: data,
  });
}
